<?php

namespace common\models\myhtsq;

use common\models\BaseModel;

/**
 * Description of InvoiceSummaryModel
 * 发票摘要统一 Model
 * @author chenxc
 */
class InvoiceSummaryModel extends BaseModel {

    public $summary_id;
    public $invoice_id;
    public $summary_type;
    public $summary_amount;
    public $created_by;
    public $modified_by;

    public function __construct($config = array()) {
        parent::__construct($config);
    }

    public function rules() {
        return [
            [['summary_amount'], 'number'],
            [['summary_amount'], 'default', 'value' => 0],
            [['summary_type'], 'string'],
            [['invoice_id', 'summary_id', 'created_by', 'modified_by'], 'string', 'max' => 36]
        ];
    }

}
